-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Client implementation #1
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for upstreaming :) Huge PR though, will need to make a few passes. Here's a first round of comments
impl From<DisperserG1Commitment> for G1Commitment { | ||
fn from(value: DisperserG1Commitment) -> Self { | ||
Self { | ||
x: value.x, | ||
y: value.y, | ||
} | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there any point in redefining G1Commitment here? Its literally the same struct as the one in generated/common.rs. Perhaps we can just use that one directly?
Change anyhow for thiserror
Sync latest changes
hey @samlaf this is ready for review again, we merged the previous PRs (the one about thiserror and the other one that synced the latest changes). Let me know if you have any questions. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@juanbono @gianbelinche are you guys ready to start using this client in zksync after we merge this PR? If so then I don't want to delay this merge any longer. I can just create separate issues for the points raised below that we can fix in separate PRs.
src/generated/common.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
how were these generated? can we use a submodule to eigenda + prost to generate these?
src/sdk.rs
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not a huge fan of the module name sdk
.
What is the reason why client and RawEigenClient need to be separate? Most of the methods in RawEigenClient are private anyways right? So could we not just merge the two?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can address that one in a separate PR after we merge this initial implementation
This PR moves the client implementation coming from zksync-era.
It has some changes to make it work as a lib: